package com.example.base.net

import com.example.base.entity.AddOrderParam
import com.example.base.entity.OrderEntity
import com.example.base.entity.OrderEntityItem
import com.example.base.entity.Res
import okhttp3.RequestBody
import retrofit2.http.*

interface ApiService {

    @GET("/api/repair-orders")
    suspend fun getOrder(): Res<OrderEntity>

    @POST("/api/repair-orders")
    suspend fun getAdd(@Body body: RequestBody):Res<OrderEntityItem>

    @HTTP(method = "DELETE",path = "/api/repair-orders/{id}",hasBody = false)
    suspend fun getDelete(@Path("id")id:Int):Res<Boolean>

}